<link href="../Public/css/skin.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../Public/js/jquery-1.4.3.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 <!-- 订单物流发货 -->

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}

-->
textarea {
	display: block;
}
</style>



<script type="text/javascript">

	//...选择物流公司
	function selectFactory() {
		 var url="__APP__/Express/viewFactorys" ;
		 openwindow(url,"选择物流公司",700,500);
	}
	
	
	//物流公司ID和物流公司名称
	function saveFactory(gid,gname){
		$("#factoryid").attr("value",gid);
		$("#company").attr("value",gname);
	}
	
	 
	 var newWindow; 
	 function openwindow(url,name,iWidth,iHeight){
	 	var url;                            //转向网页的地址;
	   	var name;                           //网页名称，可为空;
	   	var iWidth;                         //弹出窗口的宽度;
	   	var iHeight;                        //弹出窗口的高度;
	   	var iTop = (window.screen.availHeight-30-iHeight)/2;       //获得窗口的垂直位置;
	   	var iLeft = (window.screen.availWidth-10-iWidth)/2;        //获得窗口的水平位置;
	   	window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no');
	 }
	 
	 
	 function submitFunc(){
		 if($("#factoryid").val()=='' || $("#company").val()==''){
			 alert("没有选择物流厂家");
			 return ;
		 }
		 
		 if($("#number").val()==''){
			 alert("物流单号不能为空");
			 return ;
		 }
		 
		 
		 
		if(confirm("确认要将该订单物流配送吗")){
			$("#list").submit() ; 
		}
	 }
	 
	 
</script>






<body>

	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" valign="top"
				background="../Public/images/mail_leftbg.gif"><img
				src="../Public/images/left-top-right.gif" width="17" height="29" />
			</td>
			<td valign="top" background="../Public/images/content-bg.gif">
				<table
					width="100%" height="31" border="0" cellpadding="0" cellspacing="0"
					class="left_topbg" id="table2">
					<tr>
						<td height="31"><div class="titlebt">发货</div>
						</td>
					</tr>
				</table>
			</td>
			<td width="16" valign="top"
				background="../Public/images/mail_rightbg.gif"><img
				src="../Public/images/nav-right-bg.gif" width="16" height="29" />
			</td>
		</tr>
		<tr>
			<td valign="middle" background="../Public/images/mail_leftbg.gif">&nbsp;</td>
			<td valign="top" bgcolor="#F7F8F9">
				<table width="98%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td valign="top" class="td_top"></td>
					</tr>
					<tr>
						<td>
						
						
							<form method="post" id="list" action="__URL__/insert"	enctype="multipart/form-data">
								<table width="100%" border="0" cellpadding="3" cellspacing="0"
									bgcolor="#CCCCCC" class="content">
									<tr>
										<td class="edit_left">用户名：</td>
										<td class="edit_right">
										 <input type="hidden" name="aid" id="aid" value="{$data.aid}">   <!-- 竞标商品ID和订单ID -->
										 <input type="hidden" name="oid" id="oid" value="{$data.id}"> 
										 <input type="text" name="name" id="name" value="{$data.name}" class="edit_input" readonly="readonly">
									</td>
									</tr>
									<tr>
										<td class="edit_left">商品名称：</td>
										<td class="edit_right">
											<input type="text" name="goodsname" id="goodsname" value="{$data.goodsname}" class="edit_input" readonly="readonly">
										</td>
									</tr>
									<tr>
										<td class="edit_left">物流公司：</td>
										<td class="edit_right">
											<input type="text" name="company" id="company" value="" class="edit_input" readonly="readonly">
											<input type="hidden" name="factoryid" id="factoryid" value=""  >

											<input type="button" name="selFactory" id="selFactory" value="选择" onclick="selectFactory()"/>											
										</td>
									</tr>
									<tr>
										<td class="edit_left">物流单号：</td>
										<td class="edit_right">
											<input type="text" name="number" id="number" value="" class="edit_input">
										</td>
									</tr>

									<tr>
										<td colspan="2">
										 <a href="javascript:submitFunc();" id="submit" class="operation_submit" style="margin-left: 430px; margin-top: 30px;"></a>
									   </td>
									</tr>
								</table>
							</form>
							
							
						</td>
					</tr>
					<tr>
						<td height="40"></td>
					</tr>
					<tr>
						<td width="51%" class="left_txt"><img
							src="../Public/images/icon-mail2.gif" width="16" height="11">
							客户服务邮箱：{$Think.config.sysconfig.services_email}<br> <img
							src="../Public/images/icon-phone.gif" width="17" height="14">
							官方网站：{$Think.config.sysconfig.website}</td>
					</tr>
				</table>
			</td>
			<td background="../Public/images/mail_rightbg.gif">&nbsp;</td>
		</tr>
		<tr>
			<td valign="bottom" background="../Public/images/mail_leftbg.gif"><img
				src="../Public/images/buttom_left2.gif" width="17" height="17" />
			</td>
			<td background="../Public/images/buttom_bgs.gif"><img
				src="../Public/images/buttom_bgs.gif" width="17" height="17">
			</td>
			<td valign="bottom" background="../Public/images/mail_rightbg.gif"><img
				src="../Public/images/buttom_right2.gif" width="16" height="17" />
			</td>
		</tr>
	</table>

</body>
